function percent=countRange(coefarr, T)
    %% initialize
    [M, N] = size(coefarr);
    total = M*N;
    %% get values in range
    p1 = nnz(coefarr > T);
    p2 = nnz(coefarr < -T);
    count = total - p1 - p2;
    %% return value
    percent = count / total;
end
